//
//  UIView+Block.m
//  blockDemo1
//
//  Created by 李煜 on 2024/5/14.
//

#import "UIView+Block.h"
@implementation XMPerson

@end
@implementation UIView (Block)


- (void)addTemp:(void (^)(XMPerson * _Nonnull))temp {
    //2. 如果你要XMPerson
    if (temp) {
        //造一个
        XMPerson *p = [XMPerson new];
        //给你
        temp(p);
    }
}
@end
